package br.com.salaodebeleza.persistence;

import java.util.List;

import javax.inject.Inject;

import org.slf4j.Logger;

import br.gov.frameworkdemoiselle.stereotype.PersistenceController;
import br.gov.frameworkdemoiselle.template.JPACrud;

import br.com.salaodebeleza.domain.TbAgenda;

@PersistenceController
public class TbAgendaDAO extends JPACrud<TbAgenda, Long> {

	private static final long serialVersionUID = 1L;
	

	public List<TbAgenda> findAgendaDia() {
		String jpql = "select agenda from TbAgenda agenda where agenda.dtAgendamento = CURRENT_DATE";
		return super.findByJPQL(jpql);
	}
	

}
